package com.example.study.testcomparable;

/**
 * bean类
 *
 * @author hjh
 * @create 2019-08-22 0:35
 **/
public class Person {
    private int age;
    private String name;

    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';

    }


}
